package com.swu.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
@Schema(description = "分页查询基类")
public class PageQueryDTO {
    
    @Schema(description = "页码（从1开始）", required = true)
    @Min(value = 1, message = "页码必须大于0")
    private Integer pageNum = 1;
    
    @Schema(description = "每页记录数（10-100）", required = true)
    @Min(value = 4, message = "每页记录数不能小于4")
    @Max(value = 100, message = "每页记录数不能大于100")
    private Integer pageSize = 4;
} 